import request from '@/utils/request'

// 查询协议列表
export function agreementList(query) {
  return request({
    url: '/base/agreement/list',
    method: 'get',
    params: query
  })
}
// 新增协议
export function addAgreement(data) {
  return request({
    url: '/base/agreement',
    method: 'post',
    data: data
  })
}


// 获取协议详细信息
export function agreementId(id) {
  return request({
    url: `/base/agreement/${id}`,
    method: 'get',
  })
}


// 修改协议
export function eitHagreement(data) {
  return request({
    url: '/base/agreement',
    method: 'put',
    data: data
  })
}

// 删除协议
export function delAgreement(id) {
  return request({
    url: `/base/agreement/${id}`,
    method: 'delete'
  })
}

// 导出协议列表
export function agreementExport(data) {
  return request({
    url: '/base/agreement/export',
    method: 'post',
    data: data
  })
}